body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#chat-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 400px;
    padding: 10px;
    margin-bottom: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
}

.user-message {
    background-color: #e1f5fe;
    align-self: flex-end;
}

.ai-message {
    background-color: #f1f1f1;
    align-self: flex-start;
}

#message-form {
    display: flex;
    gap: 10px;
}

#message-input {
    flex-grow: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

button[type="submit"] {
    background-color: #2196f3;
    color: white;
}

.tool-approval {
    background-color: #fff9c4;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    align-self: flex-start;
    max-width: 90%;
    border: 1px solid #ffc107;
}

.tool-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.approve-btn {
    background-color: #4caf50;
    color: white;
}

.reject-btn {
    background-color: #f44336;
    color: white;
}

#status {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
}

.modal-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.modal-content {
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
